package com.mycompany.virtualApp.service;

import com.mycompany.virtualApp.dao.TabAdvDao;
import com.mycompany.virtualApp.entity.TabAdvModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Service("tabAdvService")

public class TabAdvServiceImpl implements TabAdvService {
    @Autowired
    TabAdvDao tabAdvDao;
    @Override
    public List<TabAdvModel> getTanAdvList(Map<String,Object> map) {
        return tabAdvDao.getTabAdvList(map);
    }

    @Override
    public int saveTabAdv(TabAdvModel tabAdvModel) {
        return tabAdvDao.saveTabAdv(tabAdvModel);
    }

    @Override
    public TabAdvModel selectByParam(Map<String, Object> map) {
        return tabAdvDao.selectByParam(map);
    }

    @Override
    public int delete(Map<String, Object> map) {
        return tabAdvDao.delete(map);
    }

    @Override
    public int updateTab(TabAdvModel tabAdvModel) {
        return tabAdvDao.updateTab(tabAdvModel);
    }
}
